namespace DesignPattern.Structural.Proxy
{
    public class WebpageProxy : IWebpage
    {
        public void Display()
        {
            BeforeDisplay();

            var webpage = new Webpage();
            webpage.Display();

            AfterDisplay();
        }

        private void BeforeDisplay()
        {
            System.Console.WriteLine("before display real web page content");
        }

        private void AfterDisplay()
        {
            System.Console.WriteLine("after display real web page content");
        }
    }
}